#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2021/7/28 17:25
# @Author  : ldh
from basic.UIParent import UIParent
from test.cases.agx.AGXLogin import AGXLogin
from commen.page.agx.AGXMyPage import AGXMyPage
from basic.utils.asserts import asserts
from time import sleep

class AGXMyInfo(UIParent):

    @classmethod
    def test_agxMyinfo(cls):
        '''个人信息校验'''
        #判断是否登录
        AGXLogin.test_agxLoginByPwd()
        AGXMyPage.openMyPage()
        AGXMyPage.myInfo()
        asserts.equal(AGXMyPage.getMyTelephone(),"136****5787","个人信息校验")
        AGXMyPage.nickName()
        AGXMyPage.editNickName()
        sleep(3)
        AGXMyPage.nickNameBack()
        sleep(3)


